package com.piaodekuai.flight.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
@Controller
public class customerController {

    @RequestMapping("/customerCenter")
    public String customerCenter(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/customerCenter";
    }

    @RequestMapping("/shouye")
    public String shouye(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/shouye";
    }

    @RequestMapping("/waitFly")
    public String waitFly(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/waitFly";
    }

    @RequestMapping("/toPaid")
    public String toPaid(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/toPaid";
    }

    @RequestMapping("/comment")
    public String comment(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/comment";
    }

    @RequestMapping("/historicalOrder")
    public String historicalOrder(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/historicalOrder";
    }


    @RequestMapping("/webwallet")
    public String webwallet(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/webwallet";
    }

    @RequestMapping("/card")
    public String card(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/card";
    }

    @RequestMapping("/cashBack")
    public String cashBack(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/cashBack";
    }

    @RequestMapping("/securityCenter")
    public String securityCenter(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/securityCenter";
    }



    @RequestMapping("/coupon")
    public String coupon(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/coupon";
    }

    @RequestMapping("/integral")
    public String integral(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/integral";
    }

    @RequestMapping("/einvoice")
    public String einvoice(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/einvoice";
    }


    @RequestMapping("/messagelist")
    public String messagelist(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/messagelist";
    }


    @RequestMapping("/myInformation")
    public String myInformation(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/myInformation";
    }

    @RequestMapping("/thirdPart")
    public String thirdPart(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/thirdPart";
    }

    @RequestMapping("/safecenter")
    public String safecenter(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "customer/safecenter";
    }


}
